home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / FLTK-1.0.6 / src / fl_call_main.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-24  |  1.4 KB  |  41 lines

  1. /*
  2.  * "$Id: fl_call_main.c,v 1.1.2.2 1999/05/24 14:03:47 mike Exp $"
  3.  *
  4.  * Copyright 1998-1999 by Bill Spitzak and others.
  5.  *
  6.  * fl_call_main() calls main() for you Windows people.  Needs to be done in C
  7.  * because Borland C++ won't let you call main() from C++.
  8.  *
  9.  * This library is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU Library General Public
  11.  * License as published by the Free Software Foundation; either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * This library is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  17.  * Library General Public License for more details.
  18.  *
  19.  * You should have received a copy of the GNU Library General Public
  20.  * License along with this library; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  22.  * USA.
  23.  *
  24.  * Please report all bugs and problems to "fltk-bugs@easysw.com".
  25.  */
  26.  
  27. #if defined(WIN32) && !defined(FL_DLL) && !defined(__GNUC__)
  28. extern int main(int, char *[]);
  29. extern int  __argc;
  30. extern char **__argv;
  31.  
  32. int fl_call_main() {
  33.   return main(__argc, __argv);
  34. }
  35. #endif /* WIN32 && !FL_DLL && !__GNUC__ */
  36.  
  37. /*
  38.  * End of "$Id: fl_call_main.c,v 1.1.2.2 1999/05/24 14:03:47 mike Exp $".
  39.  */
  40.  
  41.